package com.bjwl.service.impl;

import com.bjwl.dao.BsadminPowerMapper;
import com.bjwl.pojo.dto.BsadminPowerDto;
import com.bjwl.pojo.dto.PowerDto;
import com.bjwl.pojo.vo.BsadminPowerVo;
import com.bjwl.pojo.vo.BsadminPowerVos;
import com.bjwl.service.BsadminPowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @Author: dzx
 * @Date:Create：in 2020/5/20 14:46
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Service
public class BsadminPowerServiceImpl implements BsadminPowerService {


    @Autowired
    private BsadminPowerMapper powerMapper;


    @Override
    public BsadminPowerDto findBsadminPowerById(Integer bsAdminId) {
        return powerMapper.findBsadminPowerById(bsAdminId);
    }

    @Override
    public void deleteBsadminPowerById(Integer bsAdminId) {
        powerMapper.deleteBsadminPowerById(bsAdminId);
    }

    @Override
    public void saveBsadminPowerById(BsadminPowerVos vos) {
        powerMapper.saveBsadminPowerById(vos);
    }

    @Override
    public ArrayList<PowerDto> findAllPower() {
        return powerMapper.findAllPower();
    }
}
